$primary-color: red;
#app {

  // 主体区域
  .main-container {
    position: absolute;
    top: 34px;
    left: 210px;
    right: 0;
    bottom: 0;
    overflow: auto; // background-color: #F0F0F0; //暂时隐藏看实际需求选择背景颜色
    // z-index: 1; //和侧边框有冲突
    transition: left .28s;
  }

  // nav导航
  .nav-container {
    box-sizing: border-box;
    position: fixed;
    padding-left: 210px;
    width: 100%;
    height: 34px;
    z-index: 20;
    transition: padding .28s;
  }

  // 侧边栏
  .sidebar-container {
    box-shadow: 2px 0px 3px rgba(0, 0, 0, 0.1);
    transition: width .28s;
    width: 210px !important;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
     overflow-y:auto;
overflow-x:hidden;
background-color: #304156;
    a {
      display: inline-block;
      width: 100%;
    }

    .svg-icon {
      width: 14px;
      height: 14px;
      color: #fff;
      margin-right: 16px;
    }

    .is-active {
      &>.svg-icon {
        color: rgb(64, 158, 255);
      }
    }

    .el-menu {
      border: none;
      width: 100%;
    }
  }

  .hideSidebar {

    .sidebar-container,
    .sidebar-container .el-menu {
      width: 36px !important;
    }

    .main-container {
      left: 36px;
    }

    .nav-container {
      padding-left: 36px;
    }
  }

  .hideSidebar {
    .submenu-title-noDropdown {
      padding-left: 10px !important;
      position: relative;

      span {
        height: 0;
        width: 0;
        overflow: hidden;
        visibility: hidden;
        transition: opacity .3s cubic-bezier(.55, 0, .1, 1);
        opacity: 0;
        display: inline-block;
      }

      &:hover {
        span {
          display: block;
          border-radius: 3px;
          z-index: 1002;
          width: 140px;
          height: 56px;
          visibility: visible;
          position: absolute;
          right: -145px;
          text-align: left;
          text-indent: 20px;
          top: 0px;
          background-color: $subMenuBg !important;
          opacity: 1;
        }
      }
    }

    .el-submenu {
      &>.el-submenu__title {
        padding-left: 10px !important;

        &>span {
          display: none;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }

      .nest-menu {
        .el-submenu__icon-arrow {
          display: block !important;
        }

        span {
          display: inline-block !important;
        }
      }
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-submenu .el-menu-item {
    min-width: 180px !important;
    background-color: $subMenuBg !important;

    &:hover {
      background-color: $menuHover !important;
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: 180px !important;
  }

  .el-menu--collapse .el-submenu .el-menu-item {
    padding-left: 10px !important;
  }
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    // background-color: #f0f0f0;
}
    ::-webkit-scrollbar-thumb {
    background-color: #637ca2;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}


/*滑道*/
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #f0f0f0;
    border-radius: 10px;
}
@media screen and (max-height: 680px) {
  .el-menu-item{
    height:40px !important;
    line-height: 40px !important;
  }
}